/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

void park() {
    static int count = 30;
    count = count - 1;
    printf("the remaining number of parking spaces : %d\n", count);
}

int main() {
    park();
    park();
    park();
    park();

    return 0;
}

/*
output:
a
the remaining number of parking spaces : 29
the remaining number of parking spaces : 28
the remaining number of parking spaces : 27
the remaining number of parking spaces : 26
*/